x=eval(input("请输入本月工资："))
y=x-5000
if y<=1500:
    print("本月的税收为{}".format(y*0.03))
elif y<=4500:
    print("本月的税收为{}".format(1500*0.03+(y-1500)*0.1))
elif y<=9000:
    print("本月的税收为{}".format(1500*0.03+3000*0.1+(y-4500)*0.2))
elif y<=35000:
    print("本月的税收为{}".format(1500*0.03+3000*0.1+4500*0.2+(y-9000)*0.25))
elif y<=55000:
    print("本月的税收为{}".format(1500*0.03+3000*0.1+4500*0.2+26000*0.25+(y-35000)*0.3))
elif y<=80000:
    print("本月的税收为{}".format(1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+(y-55000)*0.35))
else:
    print("本月的税收为{}".format(1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+25000*0.35+(y-80000)*0.45))